@charset "UTF-8";

/*!
Theme Name: DokiBase.Ru
Author: Akinin Yura

*/
* {
    box-sizing: border-box;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    background: #e2ebfa;
    color: rgb(0, 0, 0);
    font-size: 14px;
    padding: 0;
    margin: 0;
    font-family: "-apple-system", BlinkMacSystemFont, "Segoe UI", Arial,
        sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
}

h1 {
    font-size: 14px;
}

h2 {
    font-size: 1.125em;
}

h3 {
    font-size: 1em;
}

a {
    color: rgb(0, 0, 0);
}

a,
a:link,
a:active,
a:visited {
    transition: color 0.25s ease-out;
    outline: none;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    color: #609adf;
    cursor: pointer;
}

:active,
:hover,
:focus {
    outline: 0;
    outline-offset: 0;
}

p {
    margin: 0px;
}

/* WRAP */
.wrap {
    width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
header.l-header {
    background: #ffffff;
    padding: 20px;
    top: 0;
    left: 0;
    right: 0;
}

.l-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.l-header-logo {}

.l-header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000000;
}

.l-header-logo-link img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.l-header-logo-link span {
    font-size: 24px;
    font-weight: 600;
}

.l-header-bar {
    display: flex;
    align-items: cpace-between;
    gap: 20px;
    align-items: center;
}

.l-header-search {}

.l-header-search i {
    font-size: 18px;
}


/* ---------- Мини-профиль в шапке ---------- */
.l-header-profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 1px solid #eef2f7;
  padding-left: 10px;
}

/* Триггер: аватар + текст + каретка */
.l-header-profile-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent; /* без hover-фона */
  padding: 4px 6px;
  border-radius: 12px;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .05s;
}
/* hover убран намеренно */
.l-header-profile-trigger:active { transform: translateY(0.5px); }
.l-header-profile-trigger:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.l-header-profile-caret {
  font-size: .9rem;
  opacity: .6;
  transition: transform .2s ease, opacity .2s ease;
}
.l-header-profile-trigger[aria-expanded="true"] .l-header-profile-caret {
  transform: rotate(180deg);
  opacity: 1;
}

/* Аватар */
.l-header-profile-avatar {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e8eef8;
}
.l-header-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Текстовые части */
.l-header-profile-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 220px; /* подстройте под вашу шапку */
}
.l-header-profile-name {
  color: inherit;
  font-weight: 600;
  font-size: .95rem;
}
.l-header-profile-name,
.l-header-profile-pos {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.l-header-profile-pos {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 1px;
}

/* Чипы групп */
.l-header-profile-chip {
  background: #eff6ff;
  color: #2563eb;
  padding: 0.1rem 0.45rem;
  font-size: .75rem;
  border-radius: 9999px;
  line-height: 1.4;
}
.l-header-profile-chip--muted {
  background: #f1f5f9;
  color: #64748b;
}

/* Выпадающее меню */
.l-header-profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 240px;
  background: #fff;
  border: 1px solid #e8eef8;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(2, 6, 23, .15);
  padding: 6px;
  z-index: 1000;
}
.l-header-profile[data-open="true"] .l-header-profile-menu[hidden] { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .l-header-profile[data-open="true"] .l-header-profile-menu {
    animation: l-hdr-drop-in .14s ease-out both;
  }
}
@keyframes l-hdr-drop-in {
  from { opacity: 0; transform: translateY(-4px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.l-header-profile-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #0f172a;
  font-size: .92rem;
  text-decoration: none;
  cursor: pointer;
}
.l-header-profile-menu__item:hover { background: #f8fafc; }
.l-header-profile-menu__logout { color: #ef4444; }
.l-header-profile-menu__logout:hover { background: #fff1f2; }

.l-header-profile-menu__hr {
  height: 1px;
  background: #eef2f7;
  margin: 6px 8px;
}

/* Утилита для скрытого текста */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 1px, 1px);
  white-space: nowrap; border: 0;
}

/* Тёмная тема */
@media (prefers-color-scheme: dark) {
  /* hover у триггера не добавляем */
  .l-header-profile-avatar { box-shadow: 0 0 0 2px #0b1220, 0 0 0 3px #1e293b; }
  .l-header-profile-menu {
    background: #0b1220;
    border-color: #1e293b;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
  }
  .l-header-profile-menu__item { color: #e5e7eb; }
  .l-header-profile-menu__item:hover { background: #0f172a; }
  .l-header-profile-menu__hr { background: #1e293b; }
  .l-header-profile-chip { background: #0b2a55; color: #93c5fd; }
  .l-header-profile-chip--muted { background: #111827; color: #94a3b8; }
}


.l-header-profile-in {}

.l-header-profile-in a {}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
}

/* ------------------------------------------------------------------------------- */

/* CONTENT */
.l-main {
    padding: 20px 0 20px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.l-main-content {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    flex: 1;
}

/* ------------------------------------------------------------------------------- */

/* LEFT MENU */
.l-block {
    width: 260px;
    height: calc(100vh - 120px);
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
}

nav.navbar_menu {}

.navbar_menu-section {
    margin-bottom: 32px;
}

.navbar_menu-section-title {
    color: #9ca3af;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-left: 10px;
}

ul.navbar_menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

ul.navbar_menu-list li {
    border-radius: 8px;
    transition: background 0.2s, transform 0.1s;
}

ul.navbar_menu-list li:hover {
    background: #e5efff;
    transform: translateX(2px);
}

ul.navbar_menu-list li>a {
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.navbar_menu-list-ic {
    font-size: 16px;
    color: #6b7280;
    width: 20px;
    text-align: center;
}

.navbar_menu-list-item {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ------------------------------------------------------------------------------- */

/* STANDART BLOCK */
.s-block {
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
}

.s-block-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.s-block-title-ic {
    font-size: 20px;
    color: #4a4a4a;
}

.s-block-title h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.s-block-content {
    margin-top: 20px;
}

/* ------------------------------------------------------------------------------- */

/* PAGE INDEX */
section.m-article {
    grid-column: 1/7;
}

.m-article-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

section.m-documents {
    grid-column: 1/5;
}

.m-documents-content {}

section.m-term {
    grid-column: 5/7;
}

.m-term-content {
    display: flex;
    flex-wrap: wrap;
}

section.m-npa {
    grid-column: 1/7;
}

.m-npa-content {}

/* ------------------------------------------------------------------------------- */

/* ARTICLE ITEM */
article.item-sm-article {}

.item-sm-article-poster {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.item-sm-article-img {
    width: 100%;
    height: auto;
    display: block;
}

.item-sm-article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.item-sm-article-cat,
.item-sm-article-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    align-self: flex-start;
}

.item-sm-article-cat-ic {
    max-height: 16px;
}

.item-sm-article-cat span {
    font-weight: 500;
}

.item-sm-article-foot {
    display: flex;
    justify-content: flex-end;
}

.item-sm-article-inf {
    margin-top: 10px;
}

.item-sm-article-title {}

.item-sm-article-title h2,
.item-sm-article-title h3 {
    font-weight: 500;
    color: #111;
    text-decoration: none;
    transition: color var(-220ms ease);
    font-size: 1em;
}

.item-sm-article>a:is(:hover, :focus-visible) .item-sm-article-title h3 {
    color: #0a7cff;
}

/* ------------------------------------------------------------------------------- */

/* ARTICLE DOCUMENTS */
.doc-main-list-header {
    font-weight: 600;
    font-size: 0.9rem;
    background: #f1f5f9;
    border-radius: 10px;

    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 40px 40px;
    gap: 15px;
    padding: 15px 20px 15px 20px;
    align-items: center;
}

article.item-main-doc {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 40px 40px;
    gap: 15px;
    padding: 20px;
    align-items: center;
}

.item-main-doc:hover {
    background: #f9fafc;
    border-radius: 10px;
}
.item-main-doc-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.item-main-doc-title a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.item-main-doc-title h3 {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}
.item-main-doc-cat {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.item-main-doc-cat a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.item-main-doc-cat-img {
    max-height: 18px;
}

.item-main-doc-cat span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-main-doc-fd {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.item-main-doc-type {
    background: #eff6ff;
    color: #3b82f6;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    width: fit-content;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ------------------------------------------------------------------------------- */

/* ARTICLE MAIN TERM */
article.item-main-term {
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0 10px 0;
}

.item-main-term:hover {
    background: #f9fafc;
}
.item-main-term-cat {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.item-main-term-cat a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.item-main-term-cat img {
    max-height: 18px;
}

.item-main-term-cat span {
    color: #1a73e8;
}

.item-main-term-title {
    margin-top: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-main-term-title h3 {
    font-weight: 600;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ------------------------------------------------------------------------------- */

/* ARTICLE MAIN NPA */
.npa-main-list-header {
    font-weight: 600;
    font-size: 0.9rem;
    background: #f1f5f9;
    border-radius: 10px;

    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 15px;
    padding: 15px 20px 15px 20px;
    align-items: center;
}

article.item-main-npa {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 15px;
    padding: 20px;
    align-items: center;
}

.item-main-npa:hover {
    background: #f9fafc;
    border-radius: 10px;
}

.item-main-npa-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-main-npa-title h3 {
    font-weight: 600;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-main-npa-type {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-main-npa-cat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-main-npa-img {
    max-height: 18px;
}

/* ------------------------------------------------------------------------------- */

/* FOOTER */
footer.l-footer {
    background: #000a0f;
    margin-top: 40px;
    padding: 60px 20px 60px 20px;
    bottom: 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.l-footer-wrap {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
}

.l-footer-card {
    background: #061117;
    padding: 20px;
    border-radius: 10px;
}

.l-footer-logo {}

.l-footer-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
}

.l-footer-logo-link img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.l-footer-logo-link span {
    font-size: 24px;
    font-weight: 600;
}

.l-footer-censor {
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
    margin-top: 5px;
}

.l-footer-social {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.l-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #08151c;
    padding: 20px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.l-footer-social a>i {
    font-size: 24px;
    color: #ffffff;
}

.l-footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.l-footer-links-title {
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.l-footer-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.l-footer-links ul li {
    margin-bottom: 10px;
}

.l-footer-links ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    opacity: 0.6;
    transition: color 0.2s ease;
}

.l-footer-links ul li a:hover {
    color: #3b82f6;
    opacity: 1;
}

.l-footer-rules {
    color: #ffffff;
    opacity: 0.7;
    line-height: 1.4;
    grid-column: 1/4;
    margin-top: 20px;
}

.l-footer-copyright {
    color: #ffffff;
    opacity: 0.5;
    grid-column: 1/4;
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    opacity: 0.5;
    padding-top: 20px;
    margin-top: 40px;
}

/* ------------------------------------------------------------------------------- */

/* MAINTENANCE MODE */
/* Обёртка */
.l-maintenance-wrap {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: clamp(16px, 2.3vw, 28px);
}

/* Карточка */
.l-maintenance-card {
    width: min(720px, 100%);
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(2, 6, 23, .25);
    padding: clamp(20px, 3vw, 36px);
    text-align: center;
}

.l-maintenance-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.l-maintenance-logo img {
    max-height: 48px;
}

.l-maintenance-logo span {
    font-size: 24px;
    font-weight: 800;
}

.l-maintenance-anonce {
    margin-top: 20px;
}

/* ------------------------------------------------------------------------------- */